POV-Ray : Newsgroups : povray.newusers : Newbie syntax problem : Re: Newbie syntax problem Server Time
4 Sep 2024 16:17:19 EDT (-0400)
  Re: Newbie syntax problem  
From: LibraryMan
Date: 11 Nov 2002 12:46:31
Message: <3DCFEC0E.9C09C925@att.net>
The number of sides to the extruded shape is not as much the matter as
is the question of how to rotate vectors of a given distance from the
origin (in XZ plane) around the y-axis.  Looks like this 'vrotate' is
worth a look.  Let me go study some...  Unless of course one of you
decides to GIVE me the answer... ;-)

--LibraryMan

Christoph Hormann wrote:
> 
> LibraryMan wrote:
> >
> > Hi,
> > I'm trying to do a prism with a dodecagon (? -- anyway, polygon with 12
> > equal sides ) face and instead of trying to figure out the exact vectors
> > of the points, I wanted to do something like specifying every 4th
> > vector, then rotating the in-betweens around the y-axis, like this:
> >
> > #declare v_01 =  <0.5, 0> ;
> > #declare v_02 =  <0.5, 0> rotate y*30 ;
> > [...]
> 
> Bob's suggestion is surely the best for your purpose but
> rotating/transforming vectors can be done with
> 'vrotate()'/'vtransform()'.    See the documentation for details.
> 
> Christoph
> 
> --
> POV-Ray tutorials, include files, Sim-POV,
> HCR-Edit and more: http://www.tu-bs.de/~y0013390/
> Last updated 02 Nov. 2002 _____./\/^>_*_<^\/\.______


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.